<?php 
			
	$form=$this->beginWidget('CActiveForm', array(
		'id'=>'frmShop',
        'enableClientValidation'=>true,
        'action'=>'create',
        'clientOptions'=>array(
            'validateOnSubmit'=>true,
    		),
    
		)
	); 
?>

<table>
	<tr>
		<td>Linh vuc</td>
		<td><?php echo $form->dropDownList($model,'shop_category', $catlist, array('class'=>'textbox-admin')); ?></td>
	</tr>
	<tr>
		<td>Ten shop</td>
		<td><?php echo $form->textField($model,'name', array('class'=>'textbox-admin')); ?>
			<?php echo $form->error($model,'name'); ?>
		</td>
	</tr>	
	<tr>
		<td>Mo ta ngan</td>
		<td><?php echo $form->textField($model,'description', array('class'=>'textbox-admin')); ?></td>
	</tr>
	<tr>
		<td>Dia chi</td>
		<td><?php echo $form->textField($model,'address', array('class'=>'textbox-admin')); ?></td>
	</tr>
	<tr>
		<td>Thanh pho</td>
		<td><?php echo $form->dropDownList($model,'cityid', $citylist, array('class'=>'textbox-admin')); ?></td>
	</tr>
	<tr>
		<td>Dien thoai</td>
		<td><?php echo $form->textField($model,'mobile', array('class'=>'textbox-admin')); ?></td>
	</tr>
	<tr>
		<td>Loai shop</td>
		<td><?php echo $form->radioButtonList($model, 'type', array('Free','Premium')); ?></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><?php echo CHtml::submitButton('Save', array("class"=>"button-admin")); ?></td>
	</tr>
	
</table>

<?php
	$this->endWidget(); 
?>